import type { TnxGuessInstance } from '@/components/components'
import { ref } from 'vue'

/* 
  猜你喜欢组合式函数
*/
export const useGuessList = () => {
  //获取组件实例
  const guessRef = ref<TnxGuessInstance>()
  //添加触底事件
  const onScrolltolower = () => {
    guessRef.value?.getMore()
  }

  return { guessRef, onScrolltolower }
}
